var status = -1;
var selectionLog = [];

function action(e, c, b) {
    if (status == 0 && e == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            if (cm.getMap().countMonsterById(9101078) == 0) {
                var d = em.getMonster(9101078);
                cm.getMap().spawnMonsterOnGroundBelow(d, new java.awt.Point(202, 303))
            }
            cm.updateInfoQuest(993000501, "0");
            cm.getMap().startSimpleMapEffect("要消灭火焰狼的勇士增多了呢，赶紧攻击那个家伙！能够停留的时间就只有30秒！", 5120159);
            cm.dispose()
        } else {
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};